import { createApp } from 'vue'
//@ts-ignore
import App from './App.vue'
import Header from '@/components/headerNav.vue';
import Footer from '@/components/footerNav.vue';
import router from '@/router/index.ts'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import pinia from '@/store/index.js'
import  Login from '@/components/login.vue'
import persist from 'pinia-plugin-persistedstate'



// 实例化app
const app = createApp(App)

// 网站顶部导航栏
app.component('Header', Header)

// 网站底部权限
app.component('Footer', Footer)

// 登录组件
app.component('Login', Login)

// 注册路由组件
app.use(router)
app.use(pinia)

// 注册element-plus组件库
app.use(ElementPlus,  {
    locale: zhCn,
  })

app.mount('#app')

